package com.wkbb.common.enums;

public enum SysFunctionTypeEnum {

    MODULE(1,"模块"),
    MENU(2,"菜单"),
    BUTTON(3,"按钮");

    private SysFunctionTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public int getValue() {
        return this.value;
    }

    public void setValue(int code) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SysFunctionTypeEnum sysFunctionTypeEnum : SysFunctionTypeEnum.values()) {
            if (sysFunctionTypeEnum.getValue()==value) {
                return sysFunctionTypeEnum.getDesc();
            }
        }
        return null;
    }
}
